<?php

use yii\helpers\Html;
use yii\widgets\LinkPager;
use yii\grid\GridView;

/**
 * @var yii\web\View $this
 * @var amnah\yii2\user\Module $module
 * @var array $actions
 */

//$module = $this->context->module;

//$this->title = Yii::t('user', 'Yii 2 User');

?>
<div class="document-tbcust-mng">
    <style>
        .table thead>tr>th, .table tbody>tr>th, .table tfoot>tr>th, .table thead>tr>td, .table tbody>tr>td, .table tfoot>tr>td, .table thead>tr>td input{font-size:12px;line-height:20px;padding:3px;height:20px;}
    </style>

    <section class="content-header">
        <h1>
            租户管理
            <small>全部有效租户</small>
        </h1>
        <ol class="breadcrumb">
            <?php

            // 创建客源按钮
            echo Html::a( Html::tag('span', Yii::t('region', 'Create') .'租户' , ['class' => "glyphicon fa fa-plus-square"])   . $region_name. Yii::t('region', $region_type_name) ,
                "#", ['class' => 'btn btn-block btn-success btn-sm  activity-cust-create-link','data-toggle'=>'modal',  'data-now_url'  => $now_url ,'data-target'=>'#cust-create-modal','data-attr_type_spec_id'=>$attr_type_spec_id,'data-prod_spec_name'=>$prodSpecName]);
            //echo Html::a( Html::tag('span', Yii::t('region', 'Create') .'租户' , ['class' => "glyphicon fa fa-plus-square"])   . $region_name. Yii::t('region', $region_type_name) , $createUrl, ['class' => 'btn btn-block btn-success btn-sm']);
            ?>
        </ol>
    </section>


    <section class="content-header">

<?php

    echo $this->render('custmng_head', [
        'custInfo' => $custInfo,
        'totalProd' =>'1',
        'totalArea' =>'66666',
        'dataProvider' => $dataProvider,
    ]);
?>

</section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title">客源清单表格</h3>
                        <div class="box-tools">
                            <div class="input-group input-group-sm" style="width: 150px;">


                            </div>
                        </div>
                    </div>
                    <div class="box-body">
                        <div class="row">
                            <?php
                                echo $this->render('custmng_context',   [
                                    'now_url'  => $now_url,
                                    'domainTypes'  => $domainTypes,
                                    'domainSources' => $domainSources,
                                    'custInfo' => $custInfo,
                                    'attr_type_spec_id' => $attr_type_spec_id,
                                    'prodSpecName' =>$prodSpecName,
                                    'regionTypes' => $regionTypes,
                                    'dataProvider' => $dataProvider,
                                    'searchModel' =>  $searchModel,
                                    'regionCnt' => $regionCnt,
                                    'attrSpecs' => $attrSpecs,
                                    'regionTodayCnt' => $regionTodayCnt]);

                            ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>

